﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001517 RID: 5399
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class WorkbenchFuncIdInfo : IMessage<WorkbenchFuncIdInfo>, IMessage, IEquatable<WorkbenchFuncIdInfo>, IDeepCloneable<WorkbenchFuncIdInfo>, IBufferMessage
	{
		// Token: 0x170043FA RID: 17402
		// (get) Token: 0x0600F192 RID: 61842 RVA: 0x00284C28 File Offset: 0x00282E28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<WorkbenchFuncIdInfo> Parser
		{
			get
			{
				return WorkbenchFuncIdInfo._parser;
			}
		}

		// Token: 0x170043FB RID: 17403
		// (get) Token: 0x0600F193 RID: 61843 RVA: 0x00284C2F File Offset: 0x00282E2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return WorkbenchFuncIdInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170043FC RID: 17404
		// (get) Token: 0x0600F194 RID: 61844 RVA: 0x00284C41 File Offset: 0x00282E41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return WorkbenchFuncIdInfo.Descriptor;
			}
		}

		// Token: 0x0600F195 RID: 61845 RVA: 0x00284C48 File Offset: 0x00282E48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchFuncIdInfo()
		{
		}

		// Token: 0x0600F196 RID: 61846 RVA: 0x00284C50 File Offset: 0x00282E50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchFuncIdInfo(WorkbenchFuncIdInfo other) : this()
		{
			this.isValid_ = other.isValid_;
			this.workbenchFuncId_ = other.workbenchFuncId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600F197 RID: 61847 RVA: 0x00284C81 File Offset: 0x00282E81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchFuncIdInfo Clone()
		{
			return new WorkbenchFuncIdInfo(this);
		}

		// Token: 0x170043FD RID: 17405
		// (get) Token: 0x0600F198 RID: 61848 RVA: 0x00284C89 File Offset: 0x00282E89
		// (set) Token: 0x0600F199 RID: 61849 RVA: 0x00284C91 File Offset: 0x00282E91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsValid
		{
			get
			{
				return this.isValid_;
			}
			set
			{
				this.isValid_ = value;
			}
		}

		// Token: 0x170043FE RID: 17406
		// (get) Token: 0x0600F19A RID: 61850 RVA: 0x00284C9A File Offset: 0x00282E9A
		// (set) Token: 0x0600F19B RID: 61851 RVA: 0x00284CA2 File Offset: 0x00282EA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorkbenchFuncId
		{
			get
			{
				return this.workbenchFuncId_;
			}
			set
			{
				this.workbenchFuncId_ = value;
			}
		}

		// Token: 0x0600F19C RID: 61852 RVA: 0x00284CAB File Offset: 0x00282EAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as WorkbenchFuncIdInfo);
		}

		// Token: 0x0600F19D RID: 61853 RVA: 0x00284CB9 File Offset: 0x00282EB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(WorkbenchFuncIdInfo other)
		{
			return other != null && (other == this || (this.IsValid == other.IsValid && this.WorkbenchFuncId == other.WorkbenchFuncId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600F19E RID: 61854 RVA: 0x00284CF8 File Offset: 0x00282EF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsValid)
			{
				num ^= this.IsValid.GetHashCode();
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num ^= this.WorkbenchFuncId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600F19F RID: 61855 RVA: 0x00284D50 File Offset: 0x00282F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600F1A0 RID: 61856 RVA: 0x00284D58 File Offset: 0x00282F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600F1A1 RID: 61857 RVA: 0x00284D64 File Offset: 0x00282F64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsValid)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.IsValid);
			}
			if (this.WorkbenchFuncId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.WorkbenchFuncId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600F1A2 RID: 61858 RVA: 0x00284DC0 File Offset: 0x00282FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsValid)
			{
				num += 2;
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorkbenchFuncId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600F1A3 RID: 61859 RVA: 0x00284E0C File Offset: 0x0028300C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(WorkbenchFuncIdInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsValid)
			{
				this.IsValid = other.IsValid;
			}
			if (other.WorkbenchFuncId != 0U)
			{
				this.WorkbenchFuncId = other.WorkbenchFuncId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600F1A4 RID: 61860 RVA: 0x00284E5C File Offset: 0x0028305C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600F1A5 RID: 61861 RVA: 0x00284E68 File Offset: 0x00283068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.WorkbenchFuncId = input.ReadUInt32();
					}
				}
				else
				{
					this.IsValid = input.ReadBool();
				}
			}
		}

		// Token: 0x04005F58 RID: 24408
		private static readonly MessageParser<WorkbenchFuncIdInfo> _parser = new MessageParser<WorkbenchFuncIdInfo>(() => new WorkbenchFuncIdInfo());

		// Token: 0x04005F59 RID: 24409
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005F5A RID: 24410
		public const int IsValidFieldNumber = 7;

		// Token: 0x04005F5B RID: 24411
		private bool isValid_;

		// Token: 0x04005F5C RID: 24412
		public const int WorkbenchFuncIdFieldNumber = 10;

		// Token: 0x04005F5D RID: 24413
		private uint workbenchFuncId_;
	}
}
